home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 2233 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: comma.rhein.de!serpens!not-for-mail
  2. From: mlelstv@serpens.rhein.de (Michael van Elst)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Changing font in a CON: window
  5. Date: 29 Jan 1996 01:11:15 +0100
  6. Organization: dis-
  7. Message-ID: <4eh3b3$cpr@serpens.rhein.de>
  8. References: <4e2db8$9fc@Helene.OLEANE.NET> <600.6596T1310T1893@mbox3.swipnet.se> <4tV-x*Zxf@yaps.rhein.de>
  9. NNTP-Posting-Host: serpens.rhein.de
  10.  
  11. arno@yaps.rhein.de (Arno Eigenwillig) writes:
  12.  
  13. >Question is, what does SetFont do (I suppose it obtains the handler's
  14. >IOStdReq through ACTION_DISK_INFO, then follows the pointer to the
  15. >ConUnit structure and plays arount with cu_Font there), and is an
  16. >application allowed to do that itself (I suppose no) ?
  17.  
  18. It uses ACTION_DISK_INFO to obtain the Window pointer and then sets
  19. the font.
  20.  
  21. Setting the font is allowed (the Window pointer is there so that you
  22. can use the window's RastPort for rendering, and that includes
  23. changes to the font).
  24.  
  25. As of Kickstart1.2 the OS really supports this because the initial
  26. font is recorded in the IFont field of the Window structure.
  27.  
  28. Regards,
  29. -- 
  30.                                 Michael van Elst
  31.  
  32. Internet: mlelstv@serpens.rhein.de
  33.                                 "A potential Snark may lurk in every tree."
  34.